package Homework7;

public class Loong implements CanSwim, CanFlight {
    private String name;
    private String type;

    public Loong(String name, String type) {
        this.name = name;
        this.type = type;
    }

    @Override
    public void swim() {
        System.out.println("Loong swimming in the sea");
    }

    @Override
    public void flight() {
        System.out.println("Loong flies in the sky");
    }
}
